package com.mengchengnet.chaperonage.ui.activity;

import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

import com.mengchengnet.chaperonage.BaseActivity;
import com.mengchengnet.chaperonage.R;
import com.mengchengnet.chaperonage.util.ViewUtil;
import com.mengchengnet.chaperonage.view.CircleImageView;


public class OrderDetailActivity extends BaseActivity {
    private TextView tvDescription,tv_name,tv_address,tv_age,tv_work;
    private String name,address,age,workAge,head,descrpsion;
    private CircleImageView headIcon;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_order_detail);
        initView();
    }

    private void initView() {
        toolbarState = TOOLBAR_STYLE_BACK_TITLE;
        initToolbar("订单详情");
        name=getIntent().getStringExtra("name");
        Log.e("ppppppp订单详情", "传递的姓名"+name);
        address=getIntent().getStringExtra("address");
        age=getIntent().getStringExtra("age");
        workAge=getIntent().getStringExtra("workAge");
        head=getIntent().getStringExtra("head");
        descrpsion=getIntent().getStringExtra("evaulate");
        headIcon= (CircleImageView) findViewById(R.id.iv_photo);
        ViewUtil.showImageView(this,headIcon,head);

        tvDescription = (TextView) findViewById(R.id.tv_description);
        tvDescription.setText(descrpsion);

        tv_name= (TextView) findViewById(R.id.tv_name);
        tv_name.setText(name);

        tv_address= (TextView) findViewById(R.id.tv_hometown);
        tv_address.setText(address);

        tv_age= (TextView) findViewById(R.id.tv_age);
        tv_age.setText(age);

        tv_work= (TextView) findViewById(R.id.tv_work_time);
        tv_work.setText(workAge);
    }
}